import request from '@/utils/request'

export function qeuryJoinAll(query) {
    return request({
        url: '/system/join/all',
        method: 'get',
        params: query
    })
}


// 删除申请
export function delJoin(userId) {
    return request({
      url: '/system/join/' + userId,
      method: 'delete'
    })
}

// // 申请状态修改
// export function changeStatus(data) {
//     return new Promise((resolver,reject) => {
//         request({
//             url: '/system/join/changeStatus',
//             method: 'put',
//             data: data
//         }).then((response) => resolver(response))
//         .catch((err) => reject(err))
//     })
// }
  

// 申请状态修改
export function changeStatus(data) {
    return request({
        url: '/system/join/changeStatus',
        method: 'put',
        data: data
    })
}
  